//
//  SRPersonalDataView.h
//  SportRing
//
//  Created by icelee on 14-11-1.
//  Copyright (c) 2014年 HotOne. All rights reserved.
//

#import "LGBaseView.h"
#import "SRPersonalDataCell.h"

@interface SRPersonalDataViewModel : NSObject

@property (nonatomic, strong)NSString *headerImage;
@property (nonatomic, strong)NSString *birthDay;
@property (nonatomic, assign)NSInteger weight;
@property (nonatomic, assign)NSInteger height;
@property (nonatomic, strong)NSString *nickname;
@property (nonatomic, assign)SR_SEX_TYPE sexType;

@end

@protocol SRPersonalDataViewDelegate <NSObject>

@optional
- (void)didModifyHeader;
- (void)didModifyNickname:(NSString *)nickname;
- (void)didModifySex:(SR_SEX_TYPE )sexType;
- (void)didModifyBirthDay:(NSDate *)birthDay;
- (void)didModifyWeight:(NSInteger)weight;
- (void)didModifyHeight:(NSInteger)height;
- (void)takePhoto;
- (void)gotoAlbum;

@end

@interface SRPersonalDataView : LGBaseView

@property (nonatomic, weak)IBOutlet id<SRPersonalDataViewDelegate> personDataDelegate;

- (void)setSRPersonalDataViewData:(SRPersonalDataViewModel *)model;
- (void)setSRPersonalDataViewHeader:(NSString *)imageUrl;
- (void)setSRPersonalDataViewNickName:(NSString *)nickName;
- (void)setSRPersonalDataViewSex:(SR_SEX_TYPE )sexType;
- (void)setSRPersonalDataViewBitthDay:(NSDate *)birthDay;
- (void)setSRPersonalDataViewWeight:(NSInteger)weight;
- (void)setSRPersonalDataViewHeight:(NSInteger)height;

@end
